package cn.jianyongjie.org.mapper;

import cn.jianyongjie.basic.vo.EcharsShopVo;
import cn.jianyongjie.org.domain.Shop;
import cn.jianyongjie.basic.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jianyongjie
 * @since 2022-05-01
 */
public interface ShopMapper extends BaseMapper<Shop> {

    /*
    * @Title: ShopMapper
    * @Description: 查询店铺名称
    * @Author: JianYongJie
    * @Version: 1.0
    * @Date:  2022/5/5 21:22
    * @Parameters: * @param name
    * @Return cn.jianyongjie.org.domain.Shop
    */
    Shop findShopByName(String name);

    /*
    * @Title: ShopMapper
    * @Description: 查询店铺电话
    * @Author: JianYongJie
    * @Version: 1.0
    * @Date:  2022/5/5 21:23
    * @Parameters: * @param tel
    * @Return cn.jianyongjie.org.domain.Shop
    */
    Shop findShopByTel(String tel);

    /*
    * @Title: ShopMapper
    * @Description: 批量新增
    * @Author: JianYongJie
    * @Version: 1.0
    * @Date:  2022/5/5 21:22
    * @Parameters: * @param shops
    * @Return void
    */
    void addShops(List<Shop> shops);

    /*
    * @Title: ShopMapper
    * @Description: 分组查询状态条数
    * @Author: JianYongJie
    * @Version: 1.0
    * @Date:  2022/5/5 21:22
    * @Parameters: * @param
    * @Return java.util.List<java.lang.Long>
    */
    List<EcharsShopVo> findShopStatistics();
}
